﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<ali:Get ID="Goods" Object="Goods" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="goods_edit" data-title="编辑商品" data-id="<%=Goods[InnerID]%>">
	<div class="path1"><span>您的位置：</span><a href="list.aspx" target="ali-navtab">商品列表</a> → <b class="<%=ContentLang%>Font"><%=Goods[Name]%></b></div>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table">
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=Goods[Name]%>" size="60" maxlength="255" class="ali-input ali-input-required <%=ContentLang%>Font"></td>
				</tr>
				<tr>
					<th>类别：</th>
					<td>
						<select name="CategoryID" class="<%=ContentLang%>Font" data-ali-widget="combo" data-tree="true" data-root="0">
							<option value="" data-item="" data-parent="0" data-name="" data-page-generate="" data-page-template="" data-page-id="" data-page-extension="">未指定</option>
							<ali:Tree Object="GoodsCategory">
								<ali:Record>
									<%If Guid.Equals(ID, Goods[CategoryID])%>
										<option value="<%=ID%>" data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>" data-name="<%=Name%>" data-page-generate="<%=PageGenerate%>" data-page-template="<%=PageTemplate%>" data-page-id="<%=PageID%>" data-page-extension="<%=PageExtension%>" selected="selected"><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>" data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>" data-name="<%=Name%>" data-page-generate="<%=PageGenerate%>" data-page-template="<%=PageTemplate%>" data-page-id="<%=PageID%>" data-page-extension="<%=PageExtension%>"><%=Name%></option>
									<%EndIf%>
									<%=ChildRecords%>
								</ali:Record>
							</ali:Tree>
						</select>
					</td>
				</tr>
				<tr>
					<th>价格：</th>
					<td>
						销售价：<input type="text" name="SalePrice" value="<%=Convert.ToDecimal(Goods[SalePrice]).ToString("0.00")%>" size="10" class="ali-input">
						市场价：<input type="text" name="MarketPrice" value="<%=Convert.ToDecimal(Goods[MarketPrice]).ToString("0.00")%>" size="10" class="ali-input">
					</td>
				</tr>
				<tr>
					<th>图片：</th>
					<td>
						<input type="text" name="Picture" value="<%=Goods[Picture]%>" size="55" class="ali-input">
						<a class="ali-button ali-uploader">浏览...</a>
						<input type="hidden" name="PictureAllowedType" value="gif|jpg|jpeg|png|bmp">
					</td>
				</tr>
				<tr>
					<th>描述：</th>
					<td>
						<textarea name="Description" data-lang="<%=ContentLang%>" data-instance-id="<%=InstanceID%>" class="editor"><%=HttpUtility.HtmlEncode(Goods[Description].ToString())%></textarea>
					</td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>